/**
 * Created by John on 2016/6/13.
 */
var than10AndNameByTest = {count: {$gt: 10}, name: 'test'};

var childDoc = {
    mane: 'test',
    stats: {height: 74, eyes: 'blue'}
};

var queryChildDocument = {'stats.eyes': 'blue'};

findOne(query, projection);
find(query, projection);

var querySizeIs5 = find({size: 5});

var queryWordIsThere = find({word: 'there'});

var queryIn = find({first: {$in: ['a', 'b', 'c']}});

find({size: {$gt: 12}});
find({size: {$lt: 12}});

find({letters: {$size: 12}});
find({letters: {$size: {$get: 10}}});

var queryVowelsThan6 = {"stats.vowels": {$gt: 6}};

var queryAll = {letters: {$all: ['a', 'e', 'i', 'o', 'u']}};

var queryExistsOtherChars = {otherChars: {$exists: true}};

var arrayChilddocument =
{
    charsets: [
        {type: "consonants", chars: ["t", "h"]},
        {type: "vowels", chars: ["e"]}
    ]
};
var queryArrayChildDocument =
{
    charsets: {
        $elemMatch: {
            $and: [{type: 'other'}, {chars: {$size: 2}}]
        }
    }
};
